﻿@using KRM.Core.Library
@model KRM.Core.vOrderView_OrderItemParts
@{
    var id = "orderitempartdetail_" + Model.SentStockID;
}
<a href="#@id" role="button" class="btn" data-toggle="modal" style="padding: 5px 3px">...
</a>
<div id="@id" class="modal hide fade in" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false" data-height="800" style="display: none; cursor: default">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <h4 id="myModalLabel" style="color: black">Details</h4>
        </div>
        <div class="modal-body" style="color: black">
            <table class="table table-bordered">
                <thead>
                    <tr>
                    <th>Name</th>
                    <th>Value</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in Model.GetPropertiesDetails(null).OrderBy(p => p.Key))
                    {
                        <tr>
                            <td style="background: whitesmoke;color: black">@item.Key</td>
                            <td style="background: whitesmoke;color: black">@item.Value</td>
                        </tr>
                    }</tbody>
            </table>

        </div>
        <div class="modal-footer">
            <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
        </div>
</div>